<%@ Control Language="vb" AutoEventWireup="false" Explicit ="true" codefile="categoriesmenu.ascx.vb" Inherits="NVPortal.Modules.NVNews.categoriesmenu" %>
<script type="text/javascript">
    var timeout = 500;
    var closetimer = 0;
    var ddmenuitem = 0;

    function DanhMuc_Setselect() {
        $('#DanhMuc > li').removeClass('seleted');
        $('#<%=Request.item("Tabid")%>_<%=Request.item("danhmuc")%>').addClass('seleted');
    }
    function DanhMuc_open() {
        DanhMuc_canceltimer();
        DanhMuc_close();
        ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');
    }

    function DanhMuc_close()
    { if (ddmenuitem) ddmenuitem.css('visibility', 'hidden'); }

    function DanhMuc_timer()
    { closetimer = window.setTimeout(DanhMuc_close, timeout); }

    function DanhMuc_canceltimer() {
        if (closetimer) {
            window.clearTimeout(closetimer);
            closetimer = null;
        }
    }

    $(document).ready(function () {
        $('#DanhMuc > li').bind('mouseover', DanhMuc_open);
        $('#DanhMuc > li').bind('mouseout', DanhMuc_timer);
        DanhMuc_Setselect();
    });

    document.onclick = DanhMuc_close;
</script>
<style type="text/css">
/* Menu DropDown List */	
/* menu styles */
#DanhMuc, #HomeMenuC {background: url('/Portals/_default/Skins/HDTech/images/nav_bg_line.jpg') repeat-x; height: 61px; margin: 0 auto; text-align: center;}
#DanhMuc .seleted {background: #cc0000; height: 26px; z-index: 1000; color: #fff;}
#DanhMuc .seleted a {color: #fff; font-weight: bold; z-index: 1000;text-decoration: none;
    text-shadow: 0 1px 1px #6f4e4e;}
#DanhMuc .seleted li a {color: #434343; font-weight: bold;}
#DanhMuc .seleted a:hover {color: #fff; font-weight: bold; background: #222; z-index: 1000;}
#DanhMuc .seleted li a:hover {color: #434343; font-weight: bold; background: #FA9226; z-index: 1000; text-transform: none;}
#DanhMuc .seleted li a:link {color: #fff; font-weight: normal; z-index: 1000;}
#DanhMuc {height: 29px; z-index: 1000;padding: 0; width: 1000px; margin: 0 auto; text-align: left;}
#DanhMuc li
{	float: left; list-style: none; height: 29px; z-index: 1000; 
font-family: Tahoma; font-size: 13px;}

#DanhMuc li a
{	display: block;border-left: 1px solid #CCCCCC;
    color: #4F4F4F; font-weight: bold;
    letter-spacing: 0.3px;
    padding: 3px 6px 0px;
    text-transform: uppercase;}

#DanhMuc li a:hover
{	color: #FFF !important;text-decoration: none;
    text-shadow: 0 1px 1px #6f4e4e;
	 background: #cc0000;padding: 3px 6px 2px;}

#DanhMuc li ul
{	margin: 0; z-index: 1000;
padding: 0;
position: absolute;
visibility: hidden;
}

#DanhMuc li ul li
{	float: none;background: #feb66d; z-index: 1000;
	display: inline}

#DanhMuc li ul li a
{	
    width: 165px; border-bottom: solid 1px #fff; z-index: 1000; text-transform: none; font-weight: normal;
    background: #feb66d;
    padding-left: 10px;
	}

#DanhMuc li ul li a:hover
{	background: #fea549; z-index: 1000;}
/* Het NV Menu */
#HMduoi {width: 1000px; margin: 0 auto; padding: 0px; text-align: left;padding-top: 8px;}	
#HMduoi li {display: inline; font-family: Tahoma; font-size: 11px;}	
#HMduoi a {font-weight:bold; color: #252525;}	
#HMduoi a:hover {font-weight:bold; color: blue;}
#HMduoi .Admin_Userten:visited, #HMduoi .Admin_Userten:link {color: #E40D0A;}
#HMduoi .Admin_Userten:hover{color: #000;}
</style>
<div id="HomeMenuC">
<ul id="DanhMuc">
<asp:Repeater id="dtlMenu" runat="server">
	<ItemTemplate>
		<li id='<%=Request.item("Tabid")%>_<%#DataBinder.Eval(Container.DataItem,"categoryid") %>'>&nbsp;<asp:HyperLink id="hplMenu" cssclass="link_leftmenu1" runat="server" NavigateUrl='<%# FormatURL("catid",DataBinder.Eval(Container.DataItem,"categoryid")) %>' text='<%# DataBinder.Eval(Container.DataItem,"categoryname")%>'></asp:HyperLink></li>
                <%--<ul>
                    <asp:DataList DataKeyField="CategoryId" ID="dtlSubMenu" runat="server" Width="100%">
                        <ItemTemplate>
                            <asp:HyperLink cssclass="link_leftmenu2" style="color:#444444" id="hplSubMenu" runat="server" NavigateUrl='<%# FormatURLSub("catid",DataBinder.Eval(Container.DataItem,"categoryid")) %>' text='<%# DataBinder.Eval(Container.DataItem,"categoryname")%>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:DataList>
			    </td>
			</tr>
		</table>--%>
	</ItemTemplate>
</asp:Repeater>
</ul></div>
